﻿namespace Assets.Scripts.DL.Enemy.CommonEnemy.States.ATK {
	public class AtkHFSM : CommonHFSM {
		public AtkHFSM(Controller controller, StateEnum stateName) : base(controller, stateName) {
			AddConditionToSelf(() => false);
			AddNewTransition(StateEnum.CommonHFSM, () => _controller.StateData.AtkOver);
		}

		public override void Enter() {
			base.Enter();
			_controller.StateData.AtkOver = false;
		}
		public override void Exit() {
			base.Exit();
			if (_controller.StateData.IsHurt) {
				_controller.StateData.IsHurt = false;
				_controller.StateData.IsSpecialState = false;
			}
		}
	}
}
